30.11.2020: Updated with the new patchseries and instructions for Windows
02.12.2020: Added tweaks
08.12.2020: Updated with patchseries v4
31.01.2020: Updated with patchseries v6
__author__ = 'ivoronin' | |
from pygments.lexer import RegexLexer, bygroups, include | |
from pygments.token import * | |
class StraceLexer(RegexLexer): | |
name = "Strace" | |
aliases = ["strace", "truss"] | |
tokens = { | |
'generic': [ |
expandArgs expands any named args that are slices into multiple named args, one for each element in the slice. This is useful for queries that use the IN operator, e.g. SELECT * FROM table WHERE id IN (:id)
Source: https://wiki.archlinux.org/title/Visual_Studio_Code#Blurry_text_under_Wayland
Due to Electron issues Visual Studio Code defaults to run under XWayland which may cause blurry text if you're using HiDPI screens.
In order to fix this issue you need to force Electron to run under Wayland by adding --enable-features=UseOzonePlatform --ozone-platform=wayland
, for example you'll be launching VSCode like
$ code --enable-features=UseOzonePlatform --ozone-platform=wayland
This fix can be made permanent by creating a .desktop
file or by directly editing /usr/share/applications/visual-studio-code.desktop
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
// ES6 version using asynchronous iterators, compatible with node v10.0+ | |
const fs = require("fs"); | |
const path = require("path"); | |
async function* walk(dir) { | |
for await (const d of await fs.promises.opendir(dir)) { | |
const entry = path.join(dir, d.name); | |
if (d.isDirectory()) yield* walk(entry); | |
else if (d.isFile()) yield entry; |
""" | |
This code demonstrates how to load Digital Earth Australia Sentinel-2 Analysis Ready Data into R. | |
It uses `rstac` to search for available data for a time and location using DEA's STAC endpoint, | |
and `gdalcubes` to load and analyse the data. | |
Functionality includes: | |
* Creating a custom pixel grid to reproject data into | |
* Apply a cloud mask using the "s2cloudless" cloud mask | |
* Combine data into seasonal composites | |
* Create an RGB animation |
n02119789 1 kit_fox | |
n02100735 2 English_setter | |
n02110185 3 Siberian_husky | |
n02096294 4 Australian_terrier | |
n02102040 5 English_springer | |
n02066245 6 grey_whale | |
n02509815 7 lesser_panda | |
n02124075 8 Egyptian_cat | |
n02417914 9 ibex | |
n02123394 10 Persian_cat |